#include"user.h"
#include <iostream>
//#include <string>
using namespace std;

void User::input(void)
{


}

void User::output(void)
{

}


int User::rename(QString name)
{
    if(!(name.isEmpty()))
    {

        nickname = name;
        return 0;
    }
    else return -1;
}

void User::saveMes(QString mess)
{


}


 void User::printAllInfo(void)
 {
     cout << hostname.toStdString() << " " << adress.toStdString() << " " <<  nickname.toStdString() << endl;
 }


